'''
Created on 11/10/2012

@author: rcasal
'''

from repositories.i_repository import IRepository
from gluon.dal import Field

class EstadoCivilRepository(IRepository):
    '''
    classdocs
    '''

    def __init__(self, datoscomunes, T):
        '''
        Constructor
        '''
        self.__datoscomunes = datoscomunes
        self.__table = None
        self.__T = T
        
    def define_table(self, migrate = False):
        
        self.__datoscomunes.define_table('CodEstadoCivil'
        ,Field('Descripcion', 'string', length = 50, required = True)
        ,migrate = migrate
        )
        self.__table = self.__datoscomunes['CodEstadoCivil']
        
    def add_requires(self):
        raise NotImplementedError()
            
    def findOne(self, ident):
        raise NotImplementedError()
    
    def findAll(self):
        raise NotImplementedError()
    
    def save(self, entity):
        raise NotImplementedError()
    
    def delete(self, entity):
        raise NotImplementedError()